package com.vainycos.lotterysearch.enums;

public enum LotteryEnum {

    /**
     * 双色球
     */
    SSQ("ssq"),

    /**
     * 七乐彩
     */
    QLC("qlc"),

    /**
     * 福彩3D
     */
    FC3D("fc3d"),

    /**
     * 超级大乐透
     */
    CJDLT("cjdlt"),

    /**
     * 七星彩
     */
    QXC("qxc"),

    /**
     * 排列3
     */
    PL3("pl3"),

    /**
     * 排列5
     */
    PL5("pl5"),

    ;

    LotteryEnum(String type){
        this.type = type;
    }


    public String getType() {
        return type;
    }

    public String type;

    public static LotteryEnum byType(String type) {
        LotteryEnum[] mallTypeEnums = values();
        for (LotteryEnum lotteryEnum : mallTypeEnums) {
            if (lotteryEnum.type.equals(type)) {
                return lotteryEnum;
            }
        }
        return null;
    }
}
